]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
perf: Stop using legacy generator functions
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 28 Jan 2019 01:57:00 +0000 (02:57 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 28 Jan 2019 17:29:35 +0000 (17:29 +0000)
This was a non-standard Mozilla extension that is no longer supported.
Simply switch to the standardized generator syntax to fix.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/367

js/perf/core.js
js/perf/hwtest.js

index e963f0c003f86058e87667e88cb19631fa5cf1b5..091a86a0f7348743f0bd723f1f320b8425ba1052 100644 (file)
@@ -65,7 +65,7 @@ let WINDOW_CONFIGS = [
     { width: 640, height: 480, alpha: true,  maximized: false, count: 10, metric: 'overviewFps10Alpha' }
 ];
 
-function run() {
+function *run() {
     Scripting.defineScriptEvent("overviewShowStart", "Starting to show the overview");
     Scripting.defineScriptEvent("overviewShowDone", "Overview finished showing");
     Scripting.defineScriptEvent("afterShowHide", "After a show/hide cycle for the overview");
index 7555a8ab25450278805da9bae4820ab5281d0575..cce996671d759f0b552ffdc9697ac457869c152f 100644 (file)
@@ -89,7 +89,7 @@ function extractBootTimestamp() {
     return result;
 }
 
-function run() {
+function *run() {
     Scripting.defineScriptEvent("desktopShown", "Finished initial animation");
     Scripting.defineScriptEvent("overviewShowStart", "Starting to show the overview");
     Scripting.defineScriptEvent("overviewShowDone", "Overview finished showing");